<?php

	namespace App\Http\Controllers\Company;

	use App\Http\Controllers\Controller;
	use Illuminate\Http\Request;
	use App\common\cTesting;


	class cMapCompanyToDatabaseConfigurationController extends Controller
	{
		public function __construct ()
		{
			$this->m_cHelper					= app()->gcHelper;
		}

		/* 获取全部公司对应的数据库
		 *
		 *
		 *
		 *
		 *
		 */
		public function mapCompanyToDatabaseConfig()
		{
				return $this->m_cHelper->gfApiEchoEx	(
															$this->m_cHelper->gfApiEchoReturn	(
																									[
																										'all_companies_and_configuration_id'	=>	$this->getAllCompaniesAndConfigurationID()
																										,
																										# testing interface
																										#
																										#
																										'v_debug'								=>  (new cTesting())->go()
																									]
																									,
																									'mapCompanyToDatabaseConfig.1000'
																									,
																									'获取全部公司对应的数据库'
																								)
														);

		}
	

		/*
		 *
		 */
		private function getAllCompaniesAndConfigurationID ()
		{
			return 
					[
						'medation'	=>	[
										'config_id'			=> '66'																,
										'company_name'		=> 'medation debug version'											,
										'company_parent_id'	=> 0																,
										'key'				=> 66																,
										'company_id'		=> 66																,
									]
						,
					];
		}

	}